package com.omega.framework.common.validate.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 正则校验
 *
 * @author Lv.
 * @date 2023/8/18 10:43
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Regex {
    String rexRule() default "";

    String rexMessage() default "";

    boolean enable() default true;
}
